package com.landian.commons.jpa.criteria;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;

/**
 * PredicateBuilder
 *
 * @author caojl
 * @create 2017/11/24
 **/
public interface Predicable {

    /**
     * 构建Predicate
     * @param root
     * @param cb
     * @return
     */
    Predicate build(Root<?> root, CriteriaBuilder cb);
}
